package com.example.hotelmanagement.mapper;

import com.example.hotelmanagement.entity.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderMapper {
    List<Order> findAll();
    Order findById(Integer orderId);
    List<Order> findByReservationId(Integer reservationId);
    List<Order> findByStatus(String status);
    int insert(Order order);
    int update(Order order);
    int delete(Integer orderId);
}